package cn.kgc.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.kgc.springboot.entity.User;
import cn.kgc.springboot.service.UserService;
import cn.kgc.springboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAll(String sex) {
        return userMapper.selectAllBySex(sex);
    }
}




